﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="course_search_update_delete.aspx.cs" Inherits="delete_course" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <center>
        <br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="Cno" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="Cno" HeaderText="Cno" ReadOnly="True" SortExpression="Cno" />
                <asp:BoundField DataField="Cname" HeaderText="Cname" SortExpression="Cname" />
                <asp:BoundField DataField="category" HeaderText="category" SortExpression="category" />
                <asp:BoundField DataField="priority_no" HeaderText="priority_no" SortExpression="priority_no" />
                <asp:BoundField DataField="credit" HeaderText="credit" SortExpression="credit" />
                <asp:BoundField DataField="term" HeaderText="term" SortExpression="term" />
                <asp:BoundField DataField="teacher" HeaderText="teacher" SortExpression="teacher" />
                <asp:BoundField DataField="address" HeaderText="address" SortExpression="address" />
                <asp:BoundField DataField="time" HeaderText="time" SortExpression="time" />
                <asp:HyperLinkField DataNavigateUrlFields="Cno,Cname" DataNavigateUrlFormatString="delete_course_detail.aspx?Cno={0}&amp;Cname={1}" HeaderText="删除课程" Text="删除" />
                <asp:HyperLinkField DataNavigateUrlFields="Cno,Cname,category,priority_no,credit,term,teacher,address,time" DataNavigateUrlFormatString="update_course_detail.aspx?Cno={0}&amp;Cname={1}&amp;category={2}&amp;priority_no={3}&amp;credit={4}&amp;term={5}&amp;teacher={6}&amp;address={7}&amp;time={8}" HeaderText="更新课程" Text="更新" />
            </Columns>
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F8FAFA" />
            <SortedAscendingHeaderStyle BackColor="#246B61" />
            <SortedDescendingCellStyle BackColor="#D4DFE1" />
            <SortedDescendingHeaderStyle BackColor="#15524A" />
        </asp:GridView>
        </center>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:XSXKConnectionString4 %>" SelectCommand="SELECT * FROM [Course] WHERE ([major] = @major)">
            <SelectParameters>
                <asp:SessionParameter Name="major" SessionField="dept" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>
